<template>
  <div>
    <div class="maxWidth">
      <h1 class="padTB37 declare_title fontS30 fonBold color3F">
        {{ notice.noticeTitle }}
      </h1>
      <div class="wBgColor declare_main_box">
        <div class="fontS18 color3F" v-html="notice.noticeContent"></div>
        <router-link
          class="declare_btn fontS30 wColor"
          v-if="notice.prizeTypeId"
          :to="`/index/declareDetails?id=${notice.prizeTypeId}`"
          >申报入口</router-link
        >
      </div>
    </div>
  </div>
</template>

<script>
import { noticeDetails } from "@/api";
export default {
  data() {
    return {
      notice: {},
    };
  },
  async created() {
    const res = await noticeDetails(this.$route.params.id);
    this.notice = res.data;
  },
};
</script>

<style>
body {
  background-color: #f0f2f6 !important;
}
</style>